package com.foreknow.demo8;

public class Computer {
    char color;
    int cpu ;
    public Computer(){}
    public Computer(char color, int cpu){
        this.color=color;
        this.cpu=cpu;
    }

    public static void main(String[] args) {
        Computer computer = new Computer('黑',1068);
        System.out.println(computer.color);
        System.out.println(computer.cpu);

    }

}
